<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 *
 * @author Joker
 *        
 */
class EmployComments extends Model
{
    protected $table='employ_comments';
    
    protected $primaryKey = 'comment_id';
    
    protected $fillable = ['comment_id','employ_id','user_id','title','content','to_comment_id','to_user_id','status'];
//    public  $timestamps = false;

	public function childComments()
	{
		return $this->hasMany('App\Models\EmployComments','to_comment_id','comment_id');
	}

    public function employ()
    {
        return $this->hasOne('App\Models\Employ','id','employ_id');
    }
}